package com.lyh.service.bill;

import com.lyh.dao.Bill.BillMapper;
import com.lyh.pojo.Bill;

import java.util.List;
import java.util.Map;

public class BillServiceImpl implements BillService{

    private BillMapper billMapper;


    public void setBillMapper(BillMapper billMapper) {
        this.billMapper = billMapper;
    }


    @Override
    public List<Bill> getBillList(Map map) {
        return billMapper.getBillList(map);
    }

    @Override
    public int countProviderBills(String providerId) {
        return billMapper.countProviderBills(providerId);
    }

    @Override
    public int countBills(Map map) {
        return billMapper.countBills(map);
    }

    @Override
    public Bill getBillById(int id) {
        return billMapper.getBillById(id);
    }

    @Override
    public int modifyBill(Bill bill) {
        return billMapper.modifyBill(bill);
    }

    @Override
    public int addBill(Bill bill) {
        return billMapper.addBill(bill);
    }

    @Override
    public int deleteBill(int id) {
        return billMapper.deleteBill(id);
    }


}
